home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / dnssd / settings.h < prev   
Encoding:
C/C++ Source or Header  |  2008-09-09  |  2.7 KB  |  144 lines

  1. // This file is generated by kconfig_compiler from kcm_kdnssd.kcfg.
  2. // All changes you do to this file will be lost.
  3. #ifndef DNSSD_CONFIGURATION_H
  4. #define DNSSD_CONFIGURATION_H
  5.  
  6. #include <kconfigskeleton.h>
  7. #include <kdebug.h>
  8.  
  9. namespace DNSSD {
  10.  
  11. class KDNSSD_EXPORT Configuration : public KConfigSkeleton
  12. {
  13.   public:
  14.     class EnumPublishType
  15.     {
  16.       public:
  17.       enum type { LAN, WAN, COUNT };
  18.     };
  19.  
  20.     static Configuration *self();
  21.     ~Configuration();
  22.  
  23.     /**
  24.       Set Additional domains for browsing
  25.     */
  26.     static
  27.     void setDomainList( const QStringList & v )
  28.     {
  29.       if (!self()->isImmutable( QString::fromLatin1( "DomainList" ) ))
  30.         self()->mDomainList = v;
  31.     }
  32.  
  33.     /**
  34.       Get Additional domains for browsing
  35.     */
  36.     static
  37.     QStringList domainList()
  38.     {
  39.       return self()->mDomainList;
  40.     }
  41.  
  42.     /**
  43.       Set Browse local network
  44.     */
  45.     static
  46.     void setBrowseLocal( bool v )
  47.     {
  48.       if (!self()->isImmutable( QString::fromLatin1( "BrowseLocal" ) ))
  49.         self()->mBrowseLocal = v;
  50.     }
  51.  
  52.     /**
  53.       Get Browse local network
  54.     */
  55.     static
  56.     bool browseLocal()
  57.     {
  58.       return self()->mBrowseLocal;
  59.     }
  60.  
  61.     /**
  62.       Set Recursive search for domains
  63.     */
  64.     static
  65.     void setRecursive( bool v )
  66.     {
  67.       if (!self()->isImmutable( QString::fromLatin1( "Recursive" ) ))
  68.         self()->mRecursive = v;
  69.     }
  70.  
  71.     /**
  72.       Get Recursive search for domains
  73.     */
  74.     static
  75.     bool recursive()
  76.     {
  77.       return self()->mRecursive;
  78.     }
  79.  
  80.     /**
  81.       Set Select publishing in LAN (multicast) or WAN (unicast, needs configured DNS server)
  82.     */
  83.     static
  84.     void setPublishType( int v )
  85.     {
  86.       if (!self()->isImmutable( QString::fromLatin1( "PublishType" ) ))
  87.         self()->mPublishType = v;
  88.     }
  89.  
  90.     /**
  91.       Get Select publishing in LAN (multicast) or WAN (unicast, needs configured DNS server)
  92.     */
  93.     static
  94.     int publishType()
  95.     {
  96.       return self()->mPublishType;
  97.     }
  98.  
  99.     /**
  100.       Set Name of default publishing domain for WAN
  101.     */
  102.     static
  103.     void setPublishDomain( const QString & v )
  104.     {
  105.       if (!self()->isImmutable( QString::fromLatin1( "PublishDomain" ) ))
  106.         self()->mPublishDomain = v;
  107.     }
  108.  
  109.     /**
  110.       Get Name of default publishing domain for WAN
  111.     */
  112.     static
  113.     QString publishDomain()
  114.     {
  115.       return self()->mPublishDomain;
  116.     }
  117.  
  118.     static
  119.     void writeConfig()
  120.     {
  121.       static_cast<KConfigSkeleton*>(self())->writeConfig();
  122.     }
  123.   protected:
  124.     Configuration();
  125.     static Configuration *mSelf;
  126.  
  127.  
  128.     // browsing
  129.     QStringList mDomainList;
  130.     bool mBrowseLocal;
  131.     bool mRecursive;
  132.  
  133.     // publishing
  134.     int mPublishType;
  135.     QString mPublishDomain;
  136.  
  137.   private:
  138. };
  139.  
  140. }
  141.  
  142. #endif
  143.  
  144.